from person import Person


class Teacher(Person):
    notify = ""

    def __init__(self, id, name, cClass):
        super().__init__(id, name, cClass)
        self.say_hello()

    def todo(self, work):
        print(self.name + "老师：布置了作业" + work.workName)
        self.notify.newWork(work)

    def say_hello(self):
        print("我是教授" + self.cClass + "班的" + self.name + "老师，我的工号是" + str(self.id))